#include "Line.hpp"
#include <allegro.h>

using namespace std;

int main() {
    Line l;

    // init Allegro display {{{
    allegro_init();
    install_keyboard();
    // install_mouse();
    // install_timer();

    set_color_depth(32);
    if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0)) {
        set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
        allegro_message("Graphics initialization failed\n%s\n", allegro_error);
        return -1;
    }
    // }}}

    l.setX(SCREEN_W/2);
    l.setY(SCREEN_H/2);

    l.setAngle(3.1415928);
    l.draw(screen, makecol(255, 255, 255));
    readkey();

    return 0;
}
END_OF_MAIN();
